package com.coder.baseapp.injecter.components;

import android.app.Activity;

import com.coder.baseapp.injecter.module.ActivityModule;
import com.coder.baseapp.injecter.module.FragmentModule;
import com.coder.baseapp.injecter.scope.PerActivity;
import com.coder.baseapp.mvp.ui.activity.LoginActivity;
import com.coder.baseapp.mvp.ui.fragment.LoginFragment;

import dagger.Component;

/**
 * Activity Component
 *
 * @Author: Tua.CoderGui
 * *
 * @Date: 2017/3/10
 * *
 * Copyright (c) 2017 All Rights Reserved.
 */
@PerActivity
@Component(dependencies = ApplicationComponent.class, modules = FragmentModule.class)
public interface FragmentComponent {
    /**
     * 获取context
     *
     * @return
     */
    Activity getActivity();

    void inject(LoginFragment fragment);

}
